package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FosDemo {
    public static void main(String[] args) throws IOException {
        //会自动创建文件
        FileOutputStream fos = new FileOutputStream("test.txt");
        fos.write(1);
        fos.write(511);
        fos.write(-1);
        fos.write(1024000);
        System.out.println("写出完毕");
        fos.close();
    }
}
